<template>
	<div class="contentDiv">
		<ul>
			<li v-for="(entry,index) in entrys" class="entryInfo" @click="entryInfoAction(entry.name,entry.entryType, consNo)" :key="index">

				<img v-if="entry.srcType === '01'" src="../../../assets/img/securityCheckImg/entry.png" />
				<p>{{entry.name}}</p>

			</li>
		</ul>

	</div>

</template>

<script>
	export default {
		data() {
			return {
			}
		},
		components: {

		},
		props: ['entrys',"consNo"],
		mounted() {
      console.log(this.entrys)
		},

		methods: {
			entryInfoAction: function(name, entryType, consNo) {
				console.log("111111");
				console.log("hhhhh" + name + entryType);
				localStorage.setItem("entryName", name);
				localStorage.setItem("entryType", entryType);
				if(name === '信息查询'){
          this.$router.push({
						path: '/customer',
          });
				}else if(name === '合同信息'){
          this.$router.push({
            path: '/contractInformation',
            query:{CONS_NO:consNo}
          });
				}else if(name === '联系信息'){
          this.$router.push({
            path: '/contactInformation',
            query:{CONS_NO:consNo}
          });
				}else if(name === '开票信息'){
          this.$router.push({
            path: '/ticketOpen',
            query:{CONS_NO:consNo}
          });
				}else if(name === '管线设施'){
          this.$router.push({
            path: '/facilitiesSearch',
            query:{CONS_NO:consNo}
          });
				}else if(name === '用气设备'){
          this.$router.push({
            path: '/equipmentSearch',
            query:{CONS_NO:consNo}
          });
				}else if(name === '用量信息查询'){
          this.$router.push({
            path: '/consumptionSearch',
            query:{CONS_NO:consNo}
          });
				}else if(name === '缴费信息查询'){
          this.$router.push({
            path: '/paySearch',
            query:{CONS_NO:consNo}
          });
				}else if(name === '巡检录入'){
          this.$router.push({
            path: '/inspection',
            query:{CONS_NO:consNo}
          });
				}else if(name === '检定录入'){
          this.$router.push({
            path: '/verification',
            query:{CONS_NO:consNo}
          });
				}else if(name === '保养录入'){
          this.$router.push({
            path: '/maintenance',
            query:{CONS_NO:consNo}
          });
				}
			}
		}
  } 
</script> 
<style scoped lang="less">
	.contentDiv {
		/*width: 25%;*/
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		ul {
			display: flex;
			flex-wrap: wrap;
			li {
				width: 25%;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				img {
					width: 1.1944rem;
					height: 1.1944rem;
					margin-top: 0.1388rem;
				}
				p {
					color: #444444;
					font-size: 0.3611rem;
					margin-top: 0.1388rem;
					margin-bottom: 0.1388rem;
				}
			}
		}
		/*img {
			width: 1.1944rem;
			height: 1.1944rem;
			margin-top: 0.1388rem;
		}
		p {
			color: #444444;
			font-size: 0.3611rem;
			margin-top: 0.1388rem;
		}*/
	}
</style>